<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>form</title>
</head>

<body>
  <form action="http://localhost:8080" method="GET">
    <p>用户：
      <input type="text" name="user" value="" />
    </p>
    <p>密码：
      <input type="password" name="pass" value="" />
    </p>
    <p>
      <input type="submit" value="GET提交" />
    </p>
  </form>
  <form action="http://localhost:8080" method="POST">
    <p>用户：
      <input type="text" name="user" value="" />
    </p>
    <p>密码：
      <input type="password" name="pass" value="" />
    </p>
    <p>
      <input type="submit" value="POST提交" />
    </p>
  </form>

</body>

</html>